import { BasicLayout, ContentLayout } from '@/views/layouts'
export default {
  path: '/core',
  name: 'core',
  component: BasicLayout,
  redirect: '/core/organization',
  meta: {
    title: 'core.model.routeTitle.core',
    type: 1,
    i18n: true
  },
  children: [
    {
      path: '/core/organization',
      name: 'core-organization',
      component: ContentLayout,
      meta: {
        title: 'core.model.routeTitle.organization',
        icon: 'partition-outlined',
        i18n: true
      },
      children: [
        {
          path: '/core/organization/division',
          name: 'core-organization-division',
          component: () => import(/* webpackChunkName: 'core-division' */ '@/views/core/division/AdministrativeDivision.vue'),
          meta: {
            title: 'core.model.routeTitle.division',
            i18n: true
          }
        },
        {
          path: '/core/organization/unit',
          name: 'core-organization-unit',
          component: () => import(/* webpackChunkName: 'core-unit' */ '@/views/core/unit/OrganizationalUnit.vue'),
          meta: {
            title: 'core.model.routeTitle.unit',
            i18n: true
          }
        }
      ]
    },
    {
      path: '/core/userRights',
      name: 'core-userRights',
      redirect: '/core/userRights/user',
      component: ContentLayout,
      meta: {
        title: 'core.model.routeTitle.userRights',
        icon: 'user-outlined',
        i18n: true
      },
      children: [
        {
          path: '/core/userRights/user',
          name: 'core-userRights-user',
          component: () => import(/* webpackChunkName: 'core-user' */ '@/views/core/user/UserManage.vue'),
          meta: {
            title: 'core.model.routeTitle.user',
            i18n: true
          }
        },
        {
          path: '/core/userRights/group',
          name: 'core-userRights-group',
          component: () => import(/* webpackChunkName: 'core-group' */ '@/views/core/group/GroupManage.vue'),
          meta: {
            title: 'core.model.routeTitle.group',
            i18n: true
          }
        },
        {
          path: '/core/userRights/role',
          name: 'core-userRights-role',
          component: () => import(/* webpackChunkName: 'core-role' */ '@/views/core/role/RoleManage.vue'),
          meta: {
            title: 'core.model.routeTitle.role',
            i18n: true
          }
        },
        {
          path: '/core/userRights/permission',
          name: 'core-userRights-permission',
          component: () => import(/* webpackChunkName: 'core-permission' */ '@/views/core/permission/PermissionManage.vue'),
          meta: {
            title: 'core.model.routeTitle.permission',
            i18n: true
          }
        }
      ]
    },{
      path: '/core/other',
      name: 'core-other',
      redirect: '/core/other/division',
      component: ContentLayout,
      meta: {
        title: 'core.model.routeTitle.other',
        icon: 'appstore-add-outlined',
        i18n: true
      },
      children: [
        {
          path: '/core/other/dictionary',
          name: 'core-other-dictionary',
          component: () => import(/* webpackChunkName: 'core-dictionary' */ '@/views/core/dictionary/DictionaryManage.vue'),
          meta: {
            title: 'core.model.routeTitle.dictionary',
            i18n: true
          }
        }
      ]
    }
  ]
}

